package com.dongjiantong.user.service;/**
 * Created by cao on 2017/11/14.
 */

import com.dongjiantong.mybatis.BaseService;
import com.dongjiantong.user.model.Organization;

import java.util.List;
import java.util.Map;


/**
 * @author cao
 * @create 2017-11-14 下午4:31
 **/

public interface OrganizationService extends BaseService<Organization> {

    /**
     * 根据id查询组织信息
     * @param id
     * @return
     */
    Organization getOrganizationById(long id);

    /**
     * 删除未使用的组织信息
     * @param id
     * @return
     */
    int delOrganizationById(long id);

    /**
     * 创建组织机构
     * @param organization
     * @return
     */
    int createOrganization(Organization organization);

    /**
     * 根据单位查询部门
     * @param orgID
     * @return
     */
    List<Organization> findDepByOrgId(long orgID);

    /**
     *
     * @param id
     * @return
     */
    List<Map<String,Object>> findByUserId(Long id);

    List<Map<String,Object>> findByArea(Map<String, Object> map);
}
